package TestPaperSystem.service;

import TestPaperSystem.Dto.*;
import TestPaperSystem.entity.Paper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xwj
 * @since 2023-03-25
 */
public interface PaperService extends IService<Paper> {
    Page selfPaperList(PaperVo paperVo) throws Exception;

    String createPaper(PaperVo paperVo) throws Exception;

    PaperDetails paperDetails(String paperId) throws Exception;

    PaperQuDTO quDetails(PaperQuVo paperQuVo) throws Exception;

    void fillAnswer(PaperQuVo paperQuVo) throws Exception;

    void handExam(PaperQuVo paperQuVo) throws Exception;

    void updateMsg(Paper paper) throws Exception;

    String checkProcess(String userId)throws Exception;

    PaperResult paperResultById(PaperVo paperVo) throws Exception;

    Boolean updateState(PaperVo paperVo) throws Exception;
}
